package com.oa.modules.approvalsec1.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;
import com.oa.modules.approvalsec1.dao.CertificationDao;
import com.oa.modules.approvalsec1.entity.CertificationEntity;
import com.oa.modules.approvalsec1.service.CertificationService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("certificationService")
public class CertificationServiceImpl extends ServiceImpl<CertificationDao, CertificationEntity> implements CertificationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CertificationEntity> page = this.page(
                new Query<CertificationEntity>().getPage(params),
                new QueryWrapper<CertificationEntity>()
        );

        return new PageUtils(page);
    }

}
